package org.csmzxy.class2334.stringclass;

public class Exmaple05 {
    public static void main(String[] args){
        String s = "Hello";
        char[] charArray = s.toCharArray();
        System.out.print("将字符串" + s + "转换成字符串数组后的结果：");
        for(int i = 0; i < charArray.length; i ++){
            if(i != charArray.length - 1){
                System.out.print(charArray[i] + ",");
            }else {
                System.out.println(charArray[i]);
            }
        }
        System.out.println("将int类型的数据12转换为String类型，结果为" + String.valueOf(12));
        System.out.println("将字符串" + s +"全部转换成大写之后的结果：" + s.toUpperCase());
        System.out.println("将字符串" + s +"全部转换成小写之后的结果：" + s.toLowerCase());
    }
}
